 <!DOCTYPE html>
<html style="background-color: #F8F8F8;">

	<head>
		<meta charset="utf-8" />
		<meta name="viewport"
			content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
		<title>维修看板</title>	
		<link rel="stylesheet" type="text/css" href="{{asset('admin/css/bootstrap.min.css')}}" />
		<link rel="stylesheet" type="text/css" href="{{asset('user/css/baoxiu.css')}}"/>
		<link rel="stylesheet" type="text/css" href="{{asset('user/css/reset.css')}}"/>
		<link rel="stylesheet" type="text/css" href="{{asset('user/css/jingli.css')}}" />
		<script src="{{asset('user/js/jquery-3.2.1.min.js')}}"></script>
		<script src="{{asset('user/js/lib-flex.js')}}" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!-- 头部标题 start -->
		<header class="header">
			<div class="sousuo">
				<img src="{{asset('user/img/sousuo.png')}}" class="submit" />
				<input type="text" placeholder="搜索你想知道的" value="{{array_get($param,'keyword')}}" class="submit" id="keyword" />
			</div>
		</header>
		<!-- 头部标题 end -->
		<!-- 切换start -->
		<div class="tab-nav">
			<div class="new {{$param['status']=='1'?'active':''}}">
				<h5><a href="{{url('user/dashboard?status=1')}}" style="color: black">当前报修</a></h5>
				<div class="line" style="display: {{$param['status']=='1'?'block':'normal'}};"></div>
			</div>
			<div class="old {{$param['status']=='100'?'active':''}}">
				<h5><a href="{{url('user/dashboard?status=100')}}" style="color: black">历史报修</a></h5>
				<div class="line" style="display: {{$param['status']=='100'?'block':'normal'}};"></div>
			</div>
		</div>
		<!-- 切换end -->
		
		@foreach($list as $v)
		<!-- 报修内容 start -->
		<div class="content">
			<div class="title">
				<h3>{{$v->car_num}}</h3>
				
				<div class="{{array_get($levelCss,$v->level)}}">{{array_get($levelArr,$v->level)}}</div>
				
			</div>
			<div class="content-line"></div>
			
			<div class="content-item">
				<div class="item-title">
					进场日期 
				</div>
				<div class="item-body">
					{{$v->in_date}}
				</div>
			</div>
			
			
			<div class="content-item">
				<div class="item-title">
					状态
				</div>
				<div class="item-body">
					{{$v->status}}
				</div>
			</div>


			<div class="content-item">
					
				<a href="{{url('user/dashboard/show',$v->id)}}" style="color: black">查看详情 ></a>
			</div>
			
			@if($v->status==100)
			<div class="wancheng">
				<img src="{{asset('user/img/Vector.png')}}">
			</div>
			@endif
			
			@if($v->status==2)
			<div class="line-2"></div>
			
			<div class="team">
				服务人员：{{object_get($v,'worker.truename')}}
			</div>
			@endif

			</div>
		<!-- 报修内容end -->
		@endforeach

		<!--分页-->
{{ $list->appends($param)->links() }}
<!--end分页-->
		
		<script src="{{asset('user/js/jingli.js')}}"></script>
		<script type="text/javascript">
			
			$('.submit').bind('keypress',function(event){
		      var _url = 'http://car.qdss.com.cn/user/dashboard?keyword=';
		      var _keyword = $('#keyword').val();

		      if(event.keyCode == "13")
		      {
		        window.location.href=_url+_keyword;
		      }
		    });
		</script>
	</body>
</html>
